package com.android.fragmentdemo.adapters
import android.util.Log
import com.android.fragmentdemo.R
import com.android.fragmentdemo.databinding.RvLooperTipItemBinding
import com.android.fragmentdemo.databinding.RvStudyItemLayoutBinding
import com.hengfoxwolf.commonbase.base.adapter.BaseRvAdapter

class LooperTipItemAdapter : BaseRvAdapter<String, RvLooperTipItemBinding>() {

    override fun getLayoutId(): Int = R.layout.rv_looper_tip_item

    override fun bindData(holder: ViewHolder, dataItem: String, position: Int) {
        holder.binding.tvLooperTipItem.text = dataItem
        Log.d(TAG, "position:${position}")
    }

    override fun listenerWithBinding(binding: RvLooperTipItemBinding) {
        super.listenerWithBinding(binding)
        Log.d(TAG,"super.listenerWithBinding(binding)")
    }

    companion object {
        const val TAG = "StudyLayoutManagerAdapter"
    }
}